<template>
  <div class="wrapper">
    <div class="left" @click="handleClick">
      <slot name="left">
        <header-menu></header-menu>
      </slot>
    </div>
    <div class="center">
      <slot name="center"></slot>
    </div>
    <div class="right" @click="handleClick">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
import HeaderMenu from '@/components/base/header-menu/header-menu'
export default {
  components: {
    HeaderMenu
  },
  methods: {
    handleClick() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~@/assets/styles/variables.styl'
@import '~@/assets/styles/mixins.styl'
 
.wrapper 
  width 100%
  height 48px 
  display flex
  align-items center
  justify-content space-between
  box-sizing border-box 
  padding 0 10px
  background $color-theme-red 
  color $color-text-statetab
  position fixed
  z-index 1009
  .left 
    display flex 
    align-items center
    .icon
      width 20px
      height 22px
      margin-right 5px
      extend-click()
      .iconfont 
        font-size 21px
  .right 
    .icon 
      extend-click()
      .iconfont 
        font-size 20px
  .center 
    position absolute
    left 50%
    transform translateX(-50%)
    font-size 15px 
</style>